<?php

namespace App\Http\Controllers\Web;

use App\Helpers\FunTool;
use App\Http\Controllers\Controller;
use App\Models\News;
use App\Models\NewsModel;
use App\Models\User;
use App\Services\System\UpgradeService;
use App\Services\User\UserService;
use Illuminate\Http\Request;
use Illuminate\Support\Str;


class ArticleController extends Controller
{
    //
    public function article(Request $request,$url)
    {
        $articleInfo  = NewsModel::query()->where(['cur_status'=>1,'url'=>$url])->first(['title','content','created_at']);
        if (empty($articleInfo)) abort(404,'找不到页面');
        return view("article",compact('articleInfo'));
    }

}
